home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / tcp_ip / jnos / docs110 / autoexec.nos < prev    next >
Text File  |  1994-02-28  |  8KB  |  303 lines

  1. #this file should be in \autoexec.nos
  2.  
  3. #set the minimum memory alloc size; attempt to keep fragmentation to a minimum
  4. mem minalloc 64
  5. #if you only have asy, you don't need ibufs. set nibufs=0
  6. me ibufsize 600
  7. me nibufs 20
  8. watchdog yes
  9. mem debug on
  10.  
  11. #set some default ax.25 callsigns
  12. #mycall is used for ip packets
  13. ax25 mycall wg7j-3
  14. #for bbs connections
  15. ax25 bbscall wg7j
  16. #for keybd-to-keybd users connect to the ttycall
  17. ax25 ttycall wg7j-2
  18.  
  19. #set our host name and ip-address
  20. host wg7j.ampr.org.
  21. ip address 44.26.1.20
  22.  
  23. #AX.25 SETUP
  24. #these are the defaults used for all interfaces attached lateron.
  25. #you can set them per interface after they are attached
  26. #by using the 'iconfig <iface> ax25 <command>' format, see later
  27. ax25 version 2
  28. ax25 maxframe 1
  29. #max retry is 5 (conservative...)
  30. ax25 retry 5
  31. ax25 window 1024
  32. #initial round trip time estimate is 4 seconds
  33. ax25 irtt 4000
  34. ax25 timer linear
  35. #no keep-alive polling
  36. ax25 t3 0
  37. #link disconnected after 10 minutes of idle time
  38. ax25 t4 600
  39. #broadcast every 10 minutes
  40. ax25 bcinterval 600
  41. ax25 bctext "WGJBOX Corvallis, run by Johan, WG7J. (TCP/IP -> 44.26.1.20)"
  42.  
  43. #########################################################################
  44. #ATTACH EXAMPLES. The ones uncommented are how I use things.
  45. ##Others should work for the appropriate hardware...
  46.  
  47. #attach an ethernet card that has a packet driver on interrupt 60
  48. #give it 5 buffers, with a max data size of 1500 bytes
  49.  
  50. attach packet 60 lan 5 1500
  51.  
  52. #attach a serial port in ax25 mode, ie a kiss tnc
  53. #use com2 (address 2f8, int 3), at 9600 bd, port is called '2m'
  54. #set a mtu of 256 bytes, and use a receive buffer of 512 bytes
  55. #(you can use 'asystat' command after you're up to see how much buffers
  56. # is really used, and you can increment or decrement the 512 value. Look
  57. # at the 'sw buf hi' field)
  58. attach asy 2f8 3 ax25 2m 512 256 9600
  59.  
  60. #attach 2 ports of a 4 port (2 chip) Opto-SCC (PA0HZP) card at irq 7,
  61. #base address 150, with intack vector at 168, and clock of 4.9Mhz
  62. attach scc 2 init 150 4 2 0 1 168 7 p4915200
  63. #attach port 0 as '440' with mtu=256, at 1200 bd, and buffersize of 350
  64. attach scc 0 ax25 440 256 d1200 350
  65. #attach scc 1 ax25 220 256 d1200 350
  66.  
  67.  
  68. #attach pseudo netrom interface
  69. attach netrom
  70.  
  71. #NET/ROM SETUP
  72. netrom alias crvbbs
  73. #interface 2m, qual 192, a non-verbose interface
  74. netrom interface 2m 192 0
  75. #interface 440, qual 224, broadcast routes with qual >= 195
  76. netrom interface 440 224 195
  77. netrom retries 5
  78. netrom timer linear
  79. #netrom load
  80. netrom hidden no
  81. #disconnect circuits after 10 minutes idle time
  82. netrom tdisc 600
  83.  
  84.  
  85. #Configure the interfaces attached above...
  86.  
  87. #configure the ip address for the lan, and set up the netmask,
  88. #wich configures routes for systems on our lan
  89. ifconfig lan ip 128.193.48.123
  90. ifconfig lan netmask fffffe00
  91. #set the broadcast address (for arp's etc.)
  92. ifconfig lan broadcast 128.193.48.0
  93.  
  94.  
  95.  
  96. #use the default ip address for 2m, if you want a different one,
  97. #uncomment next line
  98. #ifconfig 2m ip 44.26.1.20
  99. #setup the netmask, wich configures the routes to the local lan: 44.26.1/24 !
  100. ifconfig 2m netmask 0xffffff00
  101. #set the broadcast address, this is a don't care
  102. ifc 2m broad 44.26.1.0
  103.  
  104.  
  105. ifc 2m ax25 cdigi 2m
  106. ifc 2m descr "SCC port 1 on 144.92 MHz"
  107.  
  108.  
  109. #KISS setup to TNC called '2m'
  110. #tx-delay (300 ms)
  111. #param 2m 1 30
  112. #persistence
  113. #param 2m 2 63
  114. #slot-time (160ms)
  115. #param 2m 3 16
  116. #tx-tail (50 ms)
  117. #param 2m 4 5
  118. #half duplex channel !
  119. #param 2m 5 0
  120.  
  121.  
  122. #you can set diferenct tcp protocol values per port, too
  123. ifc 2m tcp mss 216
  124. ifc lan tcp mss 384
  125.  
  126. #start servers
  127. start ax25
  128. start netrom
  129. start telnet
  130. start smtp
  131. start ftp
  132. start tty
  133. start pop3
  134. start convers
  135.  
  136.  
  137. #set the remote server password, and start the remote server
  138. remote -s password
  139. start remote
  140.  
  141.  
  142. #set the command recall buffer size (0 turns it off)
  143. history 10
  144.  
  145. # MAILBOX SETUP
  146.  
  147. #configure the mailbox for forwarding. Set the header information
  148. #our bbs address first, INCLUDING callsign ! (this field is a must!)
  149. mbox haddress wg7j.or.usa.noam
  150. #the remaining field could be omitted; lots of bbs strip this during forwarding
  151. mbox qth Corvallis,OR
  152. mbox fwdinfo Internet<->AX.25
  153. mbox zip 97330
  154. #by default, UTC time is assumed. For USA Pacific Time Standard, use
  155. mbox utc -8
  156. #forward smtp headers too!
  157. mbox smtptoo on
  158. #we want to add our own forward header (R:xxxxxxxxx)
  159. mbox header on
  160. #don't accept bulletins without bid's from bbs systems
  161. mbox nobid off
  162.  
  163. #Optimize forwarding by checking the R: lines of incoming forwardings
  164. bulletin check yes
  165. #get the original date of the message from the R: line. Optimizes expiry !
  166. bulletin date yes
  167. #get the return bbs address of the user who sent the message from the R: line
  168. bulletin return yes
  169. #if we detect forward loops, hold a message after 1 loop
  170. bulletin loophold 1
  171.  
  172. #forwat the forward process, and set the timer to every hour
  173. start forward
  174. mbox timer 3600
  175. #if you want to start at a certain time after the hour, use the 'at' command
  176. #eg. forward once every 30 minutes, starting at 20 minutes past the hour
  177. #at 20 "mbox timer 1800"
  178.  
  179. #for remote sysops, set a password! This protects against users setting
  180. #their call to a user that has sysop rights (an easy way out is to only
  181. #give sysop privs to usernames > 6 chars, so they have to telnet in...)
  182. mbox password 0123456789
  183.  
  184. #allow telnet,ax25,netrom connects from ax.25/netrom users only
  185. #mbox secure on
  186.  
  187. #tell the users what areas have new mail upon login
  188. mbox newmail on
  189.  
  190. #at the end of 'Sending' a message, ask them if they are sure
  191. mbox sendquery on
  192.  
  193. #ask users to register if they are new to us.
  194. mbox register on
  195.  
  196. #show the netrom id (if any) or ax25 call in the bbs prompt to new users
  197. #(users can turn this of with XN command, wich becomes the new default)
  198. mbox nrid on
  199.  
  200. #disconnect users after 10 minutes of idle time
  201. mbox tdisc 600
  202.  
  203. #send a message before the login: prompt to telnet users
  204. mbox tmsg "Please use you call sign to login..."
  205.  
  206. #you can hide ports from the 'Ports' listing in the mailbox
  207. #mbox hideport 2m on
  208.  
  209. #you can dedicate certain ax.25 ports to certain types of users only :
  210. #mbox noax25 440 on
  211. #mbox bbsonly 2m on
  212. #mbox usersonly lan on
  213. #mbox sysoponly 2m on
  214.  
  215. #set the mbox attend flag, so users can initiate the 'operator' command
  216. mbox attend on
  217.  
  218. #allow users to access the convers server with the "CONV" command
  219. #(if the NO_CONVERS flag is set in their ftpusers permissions,
  220. # this is still denied...)
  221. mbox convers on
  222.  
  223. #activate ax.25 mail-for beacons
  224. mbox mport 2m on
  225. mbox mport 440 off
  226.  
  227. #activate ax.25 id beacons
  228. ax25 bcport 2m on
  229. ax25 bcport 440 off
  230.  
  231. #turn on digipeaters
  232. ax25 digi 2m on
  233. ax25 digi 440 on
  234.  
  235. #ax.25 heard logging:
  236. ax25 hsize 10
  237. ax25 hport 2m on
  238. ax25 hport 440 on
  239.  
  240. #ip heard logging:
  241. ip hsize 10
  242. ip hport 2m on
  243. ip hport 440 on
  244.  
  245.  
  246. #configure the domain system
  247. domain suffix ampr.org.
  248. domain translate off
  249.  
  250. #the domain servers, if any
  251. #the last parameter is a timeout (in seconds) for the server access
  252. #domain addserver 44.26.1.16 60
  253. #domain addserver 128.193.48.1 30
  254.  
  255. #we want to be the domain server !
  256. #domain dns on
  257.  
  258.  
  259. #SMTP setup
  260. #don't beep for incoming mail!
  261. smtp quiet yes
  262. #route mail ourself
  263. smtp mode route
  264. #try to send batches to a host
  265. smtp batch on
  266.  
  267. #time out mail delivery after 5 minutes
  268. smtp t4 300
  269. #if all else fails, send mail to the gateway after t4 seconds
  270. smtp gateway 44.26.1.16
  271.  
  272. #kick any mail that might be in our spool from external mail and such
  273. smtp kick
  274.  
  275. #allow 10 minutes idle in the ftp server (disabled during file transfer!)
  276. ftptdisc 600
  277.  
  278. #start some cycles at a certain time
  279. # expire messages once a day, each night at 1pm (i'm using utc time)
  280. at 0900 "expire 24"
  281. #delete old bid's once a day, every night at 2pm, limit is 21 days
  282. at 1000 "oldbid 24 21"
  283.  
  284. ##finally tell the netrom network we're there !!
  285. netrom bcnodes 2m
  286. netrom bcnodes 440
  287. #poll other jnos and jnos40 nodes for their routes
  288. netrom bcpoll 2m
  289. netrom bcpoll 440
  290.  
  291.  
  292. #turn on logging to the /logs dir. One file per day !
  293. log on
  294.  
  295. #turn on error mail messages to sysop
  296. #if the option is compiled in
  297. #mailerror on
  298.  
  299. trace loopback 211
  300. trace 2m 211
  301. strace off
  302.  
  303.